home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / pbmpl91d.zip / PBMPLUS / SRC / FIX_IO.C < prev   
C/C++ Source or Header  |  1993-01-08  |  299b  |  15 lines

  1. /*
  2.  * compile with:       gcc -o fix_io.c
  3.  * add to libc with:   ar q libc.a fix_io.c
  4.  * ranlib libc with:   ranlib libc.a
  5. */
  6.  
  7. #include <stdio.h>
  8. #include <fcntl.h>
  9.  
  10. void FIX_IO(void) {
  11.      setmode( fileno(stdin), O_BINARY );
  12.      setmode( fileno(stdout), O_BINARY );
  13.      _fmode = O_BINARY;
  14.      }
  15.